'use strict';

app.controller('userCtrl', ['$scope','loginService', function($scope,loginService){
	$scope.txt='Page Home';
	
	 $scope.menu= [{link: "User management",href: "#/user"},
                  {link: "Group management",href: "group_management.html"},
                  {link: "Event management",href: "event_management.html"},
                  {link: "Social management",href: "#"},
                  {link: "Other Setting",href: "#"},
                  {link: "Statistic",href: "statistic.html"},
                  {link: "Log out",href: "index.html"}
                  ];
	
	
	$scope.logout=function(){ 
		loginService.logout();
	}
}])